package com.jieao.template.entity.roleMgr;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * 角色表(Role)实体类
 *
 * @author jzw
 * @since 2020-04-30 14:11:57
 */
@Data
@ApiModel(value = "RoleDO", description = "角色表")
public class RoleDO implements Serializable
{
    private static final long serialVersionUID = -67412668012087609L;

    @ApiModelProperty(name = "id", value = "表唯一标识")
    @JsonProperty("id")
    private String id;

    @ApiModelProperty(name = "appellation", value = "角色名称")
    @JsonProperty("appellation")
    private String name;

    @ApiModelProperty(name = "desc", value = "角色描述")
    @JsonProperty("desc")
    private String description;

    @ApiModelProperty(hidden = true)
    @JsonIgnore
    private Boolean deleted;

    @ApiModelProperty(name = "ena", value = "是否启用 true 启用 false 禁用")
    @JsonProperty("ena")
    private Boolean enable;

    @ApiModelProperty(name = "crTime", value = "创建时间", hidden = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @JsonProperty(value = "crTime")
    private Timestamp createTime;

    @ApiModelProperty(name = "crId", value = "创建人", hidden = true)
    @JsonProperty(value = "crId")
    private String createId;

    @ApiModelProperty(name = "upTime", value = "修改时间", hidden = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @JsonProperty(value = "upTime")
    private Timestamp updateTime;

    @ApiModelProperty(name = "upId", value = "修改人", hidden = true)
    @JsonProperty(value = "upId")
    private String updateId;

}